/**
 * 域名类型 Api
 * @type {SysBlackWhiteListApi}
 */
const sysBlackWhiteListApi = new class SysBlackWhiteListApi extends BaseApi {
    constructor() {
        super({
            url: '/api/sysBlackWhiteList',
            exp: true,
            imp: true,
        })
    }

    async updateOrAdd(data) {
        return (await rxajax.post(super.using(`/update-or-add`), data, {type: 'json'})).data
    }
}